package fr.afcepf.atod18.utilitaires.web;

import java.awt.Window;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import fr.afcepf.atod18.client.dao.DaoClient;
import fr.afcepf.atod18.client.entity.Client;
import fr.afcepf.atod18.client.service.ServiceClient;
import fr.afcepf.atod18.utilitaires.dao.DaoUtilisateur;


@RequestScoped
@ManagedBean
public class UtilisateurMB {
	
	private int id;
	private String nom;
	private String prenom;
	private String loggin ="";
	private String mdp = "";
	private String isLogged;
	private String message= new String();
	
	public UtilisateurMB() {
		super();
	}
	public UtilisateurMB(String nom, String prenom, String loggin, String mdp,
			String isLogged) {
		super();
		this.nom = nom;
		this.prenom = prenom;
		this.loggin = loggin;
		this.mdp = mdp;
		this.isLogged = isLogged;
		
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getNom() {
		return nom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	public String getPrenom() {
		return prenom;
	}
	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}
	public String getLoggin() {
		return loggin;
	}
	public void setLoggin(String loggin) {
		this.loggin = loggin;
	}
	public String getMdp() {
		return mdp;
	}
	public void setMdp(String mdp) {
		this.mdp = mdp;
	}
	public String getIsLogged() {
		return isLogged;
	}
	public void setIsLogged(String isLogged) {
		this.isLogged = isLogged;
	}
	
	public String authentificationUtilisateur(){
		
		if(loggin.equals("")||mdp.equals("")){
			message="Veuillez inserer vos identifiants";
		}
		System.out.println(message);
		return null;
	}
	
	
	
	

}
